﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using G.WeiBo.WebAPI.Response;
using G.Web;
using G.Net;

namespace G.WeiBo.WebAPI.Request
{
    public class RepostRequest : IRequest<ResponseData<G.WeiBo.WebAPI.Domain.Message>>
    {
        public string ID { get; set; }
        public string Content { get; set; }
        /// <summary>
        /// 是否在转发的同时发表评论。0表示不发表评论，1表示发表评论给当前微博，2表示发表评论给原微博，3是1、2都发表。默认为0。 
        /// </summary>
        public int IsComment { get; set; }
        public string GetURL()
        {
            return "statuses/repost.json";
        }

        public string HttpMethod()
        {
            return G.Net.HttpMethod.Post;
        }

        public System.Collections.Generic.IDictionary<string, string> GetParameters()
        {
            LocalDictionary parameters = new LocalDictionary();
            parameters.Add("id", ID);
            parameters.Add("status", Content);
            parameters.Add("is_comment", IsComment);
            return parameters;
        }
    }
}
